<template>
  <div class="dashboard-container">
    <div class="dashboard-editor-container">
      <panel-group />
      <el-row :gutter="32">
        <el-col :xs="16" :sm="16" :lg="8">
          <div class="chart-wrapper">
            <p>本月成交额</p>
            <bar-chart />
          </div>
        </el-col>
        <el-col :xs="16" :sm="16" :lg="8">
          <div class="chart-wrapper">
            <p>本月订单数</p>
            <pie-chart />
          </div>
        </el-col>
        <el-col :xs="16" :sm="16" :lg="8">
          <div class="chart-wrapper">
            <raddar-chart />
          </div>
        </el-col>
      </el-row>

    </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import PanelGroup from './dashboard/PanelGroup'
import LineChart from './dashboard/LineChart'
import PieChart from './dashboard/PieChart'
import BarChart from './dashboard/BarChart'
// import { count } from '@/api/visits'
import RaddarChart from './dashboard/RaddarChart'
// import OrderCount from './dashboard/OrderCount'


export default {
  name: 'Dashboard',
  components: {
    PanelGroup,
    PieChart,
    BarChart,
    LineChart,
    RaddarChart
  },
  computed: {
    ...mapGetters([
      'roles'
    ])
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.dashboard-editor-container {
  padding: 18px 22px 22px 22px;
  background-color: rgb(240, 242, 245);

  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 32px;
  }
}
</style>
